#pragma once
#include"Queue.h"

typedef struct MyStack
{
	Queue* qa;
	Queue* qb;
} MyStack;


MyStack* myStackCreate();

void myStackPush(MyStack* st, int x);

QDataType myStackPop(MyStack* st);

QDataType myStackTop(MyStack* st);

bool myStackEmpty(MyStack* st);

void myStackFree(MyStack* st);

/**
 * Your MyStack struct will be instantiated and called as such:
 * MyStack* obj = myStackCreate();
 * myStackPush(obj, x);

 * int param_2 = myStackPop(obj);

 * int param_3 = myStackTop(obj);

 * bool param_4 = myStackEmpty(obj);

 * myStackFree(obj);
*/